
// Source File Name:   RimAttributeException.java

package com.sunwayhorizo.health.hl7.common;


import com.sunwayhorizo.health.hl7.datatypes.ANY;
import com.sunwayhorizo.health.hl7.datatypes.SET_II;

public class RimAttributeException extends RimObjectException {

    public static final String RCS_ID = "$Header: RimAttributeException.java 1.0 2005/05/13 13:29:10 atomlins noship $";
    public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header: RimAttributeException.java 1.0 2005/05/13 13:29:10 atomlins noship $", "com.sunwayhorizo.health.hl7.common");
    public static final String ATTRIBUTE_PARAM = "RIM_ATTRIBUTE_PARAM";
    public static final String ATTRIBUTE_VALUE_PARAM = "RIM_ATTRIBUTE_VALUE_PARAM";

    public RimAttributeException(SET_II set_ii, String as[], String s, ANY any, String s1, String s2, ServiceException aserviceexception[])
    {
        super(set_ii, as, s1, s2, aserviceexception);
        setAttributeName(s);
        setAttributeValue(any);
    }

    public void initialize()
    {
        super.initialize();
        //m_Attrs.add("CTB_RIM_ATTRIBUTE_PARAM");
        //m_Attrs.add("CTB_RIM_ATTRIBUTE_VALUE_PARAM");
    }

    public String getAttributeName()
    {
        return (String)getParameter("RIM_ATTRIBUTE_PARAM");
    }

    public void setAttributeName(String s)
    {
        setParameter("RIM_ATTRIBUTE_PARAM", s);
    }

    public ANY getAttributeValue()
    {
        return (ANY)getParameter("RIM_ATTRIBUTE_VALUE_PARAM");
    }

    public void setAttributeValue(ANY any)
    {
        setParameter("RIM_ATTRIBUTE_VALUE_PARAM", any);
    }

}
